package com.kaiyiweitong.tongxing.activity.my.setting;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.kaiyiweitong.tongxing.R;
import com.kaiyiweitong.tongxing.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/12/19 0019.
 */

public class AccountSafeActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_safe);
        ButterKnife.bind(this);
    }

    @OnClick({ R.id.set_pay_psw, R.id.change_pay_psw})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.set_pay_psw:
                go2Page(SetPayPswActivity.class);
                break;
            case R.id.change_pay_psw:
                go2Page(ChangePayPswActivity.class);
                break;
        }
    }

    private void go2Page(Class clazz){
        Intent intent = new Intent(this, clazz);

        startActivity(intent);
    }
}
